import java.util.Scanner;

public class upcasetolowcase {
    public static void main(String[] args) {
        Scanner sr = new Scanner(System.in);
        String src = sr.nextLine();
        StringBuilder newsrc = new StringBuilder();
        for (int i = 0; i < src.length(); i++) {
            char c = src.charAt(i);
            if(Character.isUpperCase(c)){
                c = Character.toLowerCase(c);
            }
            newsrc.append(c);
        }
        System.out.println(newsrc.toString());
        sr.close();
    }
}
